package com.example.leo.mycharmingstudent.mvp.source;

import com.example.leo.mycharmingstudent.a0917.practice.ArticleEntity;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by Leo on 2020/11/10.
 */

public interface IMVPTasksDataSource {

    interface NetCallBack<T>{
        void onFailure(Call call, IOException e);

        void onResponse(T entity);
    }

    void articleList(int currentPage, NetCallBack<ArticleEntity> netCallBack);

}
